package ll1;

public class Token {
	private String name;
	private boolean terminal;
	/**
	 * Creates tokens that knows if it terminating or not
	 * @param aName	- name of token
	 * @param terminates - true if terminating false otherwise
	 */
	public Token(String aName, boolean terminates){
		setName(aName);
		setTerminal(terminates);
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public boolean isTerminal() {
		return terminal;
	}
	
	public void setTerminal(boolean terminal) {
		this.terminal = terminal;
	}
	
	public String toString(){
		String s = name;
		return s;
	}
	
}
